import Vue from 'vue';
import Vuex from 'vuex';
import generateState from './state';
import mutations from './mutations';
import actions from './actions';
Vue.use(Vuex);

const state = generateState();

export default new Vuex.Store({
  state,
  mutations,
  actions,
  strict: process.env.NODE_ENV !== 'production',
});
